﻿
using SqlSugar;
using System.Security.Principal;
using System;

namespace S.EarTag.Domain.Model
{
    /// <summary>
    /// 体尺测定
    /// </summary>
    [SugarTable("BodyMeasureModel")]
    public class BodyMeasureModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int BodyMeasureId { get; set; }

        /// <summary>
        /// 测定日期
        /// </summary>
        [SugarColumn(ColumnName = "MeasureDate")]
        public DateTimeOffset MeasureDate { get; set; }

        /// <summary>
        /// 羊只耳号
        /// </summary>
        [SugarColumn(ColumnName = "EarTag")]
        public string? EarTag { get; set; }

        /// <summary>
        /// 身高（cm）
        /// </summary>
        [SugarColumn(ColumnName = "Height", ColumnDataType = "decimal(18,2)")]
        public decimal Height { get; set; }

        /// <summary>
        /// 体长（cm）
        /// </summary>
        [SugarColumn(ColumnName = "BodyLength", ColumnDataType = "decimal(18,2)")]
        public decimal BodyLength { get; set; }

        /// <summary>
        /// 胸围（cm）
        /// </summary>
        [SugarColumn(ColumnName = "Chest", ColumnDataType = "decimal(18,2)")]
        public decimal Chest { get; set; }

        /// <summary>
        /// 管围（cm）
        /// </summary>
        [SugarColumn(ColumnName = "Tube", ColumnDataType = "decimal(18,2)")]
        public decimal Tube { get; set; }

        /// <summary>
        /// 阴囊围（cm）
        /// </summary>
        [SugarColumn(ColumnName = "Oschea", ColumnDataType = "decimal(18,2)")]
        public decimal Oschea { get; set; }

        /// <summary>
        /// 背膘厚度（mm）
        /// </summary>
        [SugarColumn(ColumnName = "Backfat", ColumnDataType = "decimal(18,2)")]
        public decimal Backfat { get; set; }

        /// <summary>
        /// 眼肌面积（厘米平方）
        /// </summary>
        [SugarColumn(ColumnName = "EyeMuscleArea", ColumnDataType = "decimal(18,2)")]
        public decimal EyeMuscleArea { get; set; }

        /// <summary>
        /// 眼肌宽度（cm）
        /// </summary>
        [SugarColumn(ColumnName = "EyeMuscleWidth", ColumnDataType = "decimal(18,2)")]
        public decimal EyeMuscleWidth { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "CreateBy")]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTimeOffset CreateDate { get; set; }


        /// <summary>
        /// 修改人
        /// </summary>
        [SugarColumn(ColumnName = "UpdateBy")]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdateDate")]
        public string? UpdateDate { get; set; }
    }
}
